import request from '../utils/request';
//1、查询课程分页数据
export const getSchedulePage = (pageNum:Number,pageSize:Number,uid:Number) =>{ 
    return request({
    url: `/schedule/list/${pageNum}/${pageSize}`,
    method: 'get',
    params: { uid }
  })
}
//2、新增课程计划
export const saveSchedule = (schedule:any) =>{ 
    return request({
    url: `/schedule/addDefaultSchedule`,
    method: 'post',
    //params: { uid }
    data: schedule //请求体传参
  })
}